<template>
  <div class="section">
    <div class="label">答案</div>
    <div class="title">这里填写题目答案</div>
    <cus-editor min-height="80px" v-model="answer" />
  </div>
</template>

<script lang="ts">
import { ref } from 'vue'
export default {
  setup() {
    let answer = ref(null);

    const validator = () => !!answer ? ({ rightAnswer: [{ content: answer.value }] }) : false;

    return { answer, validator }
  }
}
</script>

<style lang="scss" scoped>

</style>